<template>
  <div class="container">
    <el-form ref="form" :model="form" label-width="100px">
      <el-form-item label="禁用竞猜">
        <el-tag>涨跌竞猜</el-tag>
        <el-tag>hash区块竞猜</el-tag>
      </el-form-item>
      <el-form-item label="竞猜类别">
        <el-select v-model="form.region" placeholder="请选择竞猜类别">
          <el-option label="涨跌竞猜" value="shanghai" />
          <el-option label="hash区块竞猜" value="beijing" />
        </el-select>
      </el-form-item>

      <el-form-item label="状态">
        <el-radio-group v-model="form.resource">
          <el-radio label="禁用" />
          <el-radio label="启用" />
        </el-radio-group>
      </el-form-item>
      <el-form-item label="帮助">
        <el-input v-model="form.desc" type="textarea" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
        <el-button>取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<style scoped>
  .container {
    margin: 20px 20px 0 20px;
  }
</style>

<script>
export default {
  data() {
    return {
      form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!')
    }
  }
}
</script>
